<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="x-ua-compatible" content="ie=edge">

  <title><%=SETTING.website_name%></title>

  <%- include(VIEWROOT+'common/cssjs.html'); %>
</head>

<body class="hold-transition sidebar-mini">
  <div class="wrapper">

    <%- include(VIEWROOT+'common/navbar.html'); %>

    <%- include(VIEWROOT+'common/sidebar.html'); %>



    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">

      <!-- Main content -->
      <div class="content">
        <div class="container-fluid">
          <div class="row">
            <!-- /.col-md-12 -->
            <div class="col-lg-12">
              <div class="card card-primary">
                <div class="card-header">
                  <h3 class="card-title">查看文章</h3>
                </div>
                <!-- /.card-header -->
                <!-- form start -->
                <form role="form" method="post" action="">
                  <input type="hidden" name="FORWARD" value="<%=FORWARD%>">
                  <div class="card-body">

                    <div class="form-group">
                      <label for="">所属分类</label>
                      <%-cat.cat_pos%>
                    </div>

                    <div class="form-group">
                      <label for="">标题</label>
                      <%=data.title%>
                    </div>

                    <div class="form-group">
                      <label for="">缩略图</label>
                      <% if(data.thumb){ %><img width="200" class="img-fluid pad" src="<%=data.thumb%>" /><% } %>
                    </div>
                    
                    <div class="form-group">
                      <label for="">内容</label>
                      <%-data.content%>
                    </div>

                    <div class="form-group">
                        <label for="">显隐</label>
                        <%=functions.myswitch(data.flag,CORE_ENUMS.flag)%>
                      </div>
    
                    <div class="form-group">
                      <label for="">添加人</label>
                      <%=data.username%>
                    </div>
                    <div class="form-group">
                      <label for="">添加时间</label>
                      <%=functions.date(data.addtime)%>
                    </div>
                    <div class="form-group">
                      <label for="">编辑人</label>
                      <%=data.editor%>
                    </div>
                    <div class="form-group">
                      <label for="">编辑时间</label>
                      <%=functions.date(data.edittime)%>
                    </div>
                  </div>
                  <!-- /.card-body -->

                  <div class="card-footer text-center">
                    <button type="button" onclick="history.back();" class="btn btn-primary">返回</button>
                  </div>
                
              </div>
            </div>



            <!-- /.col-md-12 -->
          </div>
          <!-- /.row -->
        </div><!-- /.container-fluid -->
      </div>
      <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
      <!-- Control sidebar content goes here -->
      <div class="p-3">
        <h5>Title</h5>
        <p>Sidebar content</p>
      </div>
    </aside>
    <!-- /.control-sidebar -->


    <%- include(VIEWROOT+'common/footer.html'); %>
  </div>
  
</body>

</html>